package hotciv.common;

import hotciv.framework.City;
import hotciv.framework.GameConstants;
import hotciv.framework.Player;

public class CityImpl implements City {
	private Player player;
	private String productionUnitType = GameConstants.ARCHER;
	
	public CityImpl(Player owner) {
		player = owner;
	}
	
	/**
	 * Changes ownership of the city. Eg. when the city is conquored
	 * @param owner
	 */
	public void setOwner(Player owner) {
		player = owner;
	}
	
	@Override
	public Player getOwner() {
		return player;
	}

	@Override
	public int getSize() {
		return 1;
	}

	@Override
	public String getProduction() {
		return productionUnitType;
	}

	@Override
	public String getWorkforceFocus() {
		return GameConstants.productionFocus;
	}
	
	/* 
	 * Sets the type of unit, the city is producing
	 */
	public void setProduction(String production) {
		productionUnitType = production;
	}
	
}
